import java.io.Serializable
/**
 * @Author: 633578
 * @Desc:  基类：http返回结果
 */
open class BaseResponse<T>(
    open val furnishedLetterConnection: Int? = null,
    open val firmSailingPublicHers: T? = null,
    open val upsetTroublesomeSaturdaySecondExpense: String? = null,
) : Serializable {
    open val success: Boolean
        get() = (furnishedLetterConnection == 1000)
}

 class BaseSuccessResponse<T>(data: T?, msg: String? = null) : BaseResponse<T>(furnishedLetterConnection = 0, firmSailingPublicHers = data, upsetTroublesomeSaturdaySecondExpense = msg)

class BaseFailedResponse<T>(code: Int?, msg: String?) : BaseResponse<T>(furnishedLetterConnection = code, upsetTroublesomeSaturdaySecondExpense = msg)

class BaseCanceledResponse<T>(data: T?) : BaseResponse<T>(furnishedLetterConnection = null, firmSailingPublicHers = data)

